<?php


  $text .= '';
  $news_txt = preg_replace('/id="pane-recommend".+$/is', '', $news_txt);
  preg_match('/<div class="hotnews" alog-group="focustop-hotnews">.+<\/div>/isU', $news_txt, $m);
  $text .= $m[0];
  unset($m);
  preg_match_all('/<ul class="ulist focuslistnews">.+<\/ul>/is', $news_txt, $m);
  if (count($m[0]) > 0) {
    foreach ($m[0] as $k => $li) {
      $text .= $li;
    }
    $text = preg_replace('/<i.+\/i>/isU', '', $text);
    $text = preg_replace('/<span.+\/span>/isU', '', $text);
    $text = preg_replace('/<\/?ul[^>]*>/i', '', $text);
    //$text = preg_replace('/\s+(class|mon)=[^\>\s]+/is', '', $text);
    $text = preg_replace('/\s+mon=[^\>\s]+/is', '', $text);
    $text = preg_replace('/<li><a href=(?!\"http:\/\/[^\>\"]+\")[^>]*>.+<\/a><\/li>/isU', '', $text);
    $text = preg_replace('/<\/li>[\s\r\n]*<\!-- sp_tag_end -->[\s\r\n]*<li class="hdline\d+">/i', '', $text);
    $text = preg_replace('/class="hotnews"/i', 'id="hotnews"', $text);
  }
  //echo $text;

?>